#include <iostream>
using namespace std;

class Solution {
    public:
        int percentageLetter(string s, char letter) {
            int count = 0;
            for (auto& ch : s) {
                if (ch == letter) {
                    count++;
                }
            }
            int rate = (count * 100) / s.size();
            return rate;
        }
};